/*
 * @Author: your name
 * @Date: 2021-08-31 11:59:50
 * @LastEditTime: 2021-08-31 12:04:08
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \briup\5-javascript\day07\5-迭代的应用.js
 */

var stus = [
    { name: 'zs', age: 20 },
    { name: 'lisi', age: 30 },
    { name: 'ww', age: 12 },
    { name: 'ff', age: 15 }
];
//排序
//1.有没有成年人

var bool = stus.some(function(value) {
    return value.age >= 18;
});
console.log(bool);